package com.train.mgr.modules.biz.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import java.time.LocalDateTime;
import com.baomidou.mybatisplus.annotation.TableField;
import com.train.common.db.entity.BaseEntity;
import java.io.Serializable;
import lombok.extern.slf4j.Slf4j;

import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 用户课时复习表
 * </p>
 *
 * @author cxg
 * @date 2025-09-30
 */
@Slf4j
@Data
@EqualsAndHashCode(callSuper = true)
@Accessors(chain = true)
@TableName("a_lesson_user_review")
public class LessonUserReview extends BaseEntity<LessonUserReview> {

    private static final long serialVersionUID = 1L;

    @TableId(type = IdType.AUTO)
    private Long id;
    /**
     * 课程id
     */
    @TableField("coruse_id")
    private Long coruseId;

    /**
     * 课时id
     */
    @TableField("lesson_id")
    private Long lessonId;

    /**
     * 用户课时学习表id
     */
    @TableField("lesson_user_study_id")
    private Long lessonUserStudyId;

    @TableField("user_id")
    private Long userId;

    /**
     * 复习目标序号
     */
    @TableField("review_number")
    private Integer reviewNumber;

    /**
     * 提醒时间
     */
    @TableField("remind_time")
    private LocalDateTime remindTime;

    /**
     * 距离上次训练时间
     */
    @TableField("last_training_time")
    private String lastTrainingTime;

    /**
     * 复习状态（0：未完成；1：已完成）
     */
    @TableField("review_status")
    private Integer reviewStatus;

    /**
     * 企业id
     */
    @TableField("customer_id")
    private Long customerId;

    /**
     * 是否删除（0:否，1：是）
     */
    @TableField("is_deleted")
    private Integer isDeleted;
}
